package org.liang.system.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.liang.base.domain.BaseDomain;

import java.io.Serializable;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_org_employee")
public class Employee extends BaseDomain implements Serializable {

    @ApiModelProperty(value = "员工id")
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "序号")
    private Long id;

    @Excel(name = "名称")
    @TableField(value = "username")
    @ApiModelProperty(value = "员工姓名")
    private String username;

    @Excel(name = "员工密码")
    @TableField(value = "password")
    @ApiModelProperty(value = "员工密码")
    private String password;

    @Excel(name = "员工邮箱")
    @TableField(value = "email")
    @ApiModelProperty(value = "员工邮箱")
    private String email;

    @Excel(name = "员工头像")
    @TableField(value = "headImage")
    @ApiModelProperty(value = "员工头像")
    private String headImage;

    @Excel(name = "员工年龄")
    @TableField(value = "age")
    @ApiModelProperty(value = "员工年龄")
    private Integer age;

    @Excel(name = "员工所属部门")
    @TableField(value = "department_id")
    @ApiModelProperty(value = "员工所属部门")
    private Department department;

}
